package com.zby.charity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 *
 * @author zby
 * @email 2069189112@qq.com
 * @date 2025-01-13 14:04:17
 */
@Data
@TableName("posts")
public class PostsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 *
	 */
	private String title;
	/**
	 *
	 */
	private String content;
	/**
	 *
	 */
	private String background;
	/**
	 *
	 */
	@TableField("author_id")
	private Integer authorId;
	/**
	 *
	 */
	@TableField("created_at")
	private Date createdAt;
	/**
	 *
	 */
	@TableField("updated_at")
	private Date updatedAt;
	/**
	 *
	 */
	private Integer status;

}
